<!--
 * @Author: lxw
 * @Date: 2021-02-22 11:37:58
 * @Description: 图片banner组件
 -->
<template>
  <v-img :src="url" gradient="rgba(0, 0, 0, .2), rgba(0, 0, 0, .2)">
    <div class="inner-container">
      <h2 class="title">{{ title }}</h2>
    </div>
  </v-img>
</template>

<script>
export default {
  name: 'BannerImage',
  props: {
    url: {
      type: String,
      required: true
    },
    title: {
      type: String,
      required: true
    }
  }
}
</script>

<style scoped lang="scss">
.inner-container {
  position: relative;
  width: 100%;
  height: 100%;

  > * {
    position: absolute;
  }

  .title {
    left: 30px;
    bottom: 20px;
    font-size: 14px !important;
  }
}
</style>
